<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="j" uri="/struts-jquery-tags" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <title>Person</title>
        <j:head jqueryui="true" loadAtOnce="true" loadFromGoogle="false" compressed="false" />
    </head>
    <body>
    	<s:url id="post" action="person" />
        <s:form id="person" action="person" method="post" enctype="multipart/form-data">
            <table  border="0" cellpadding="3" cellspacing="1" align="center">
                <tr>
                	<td width="100"><s:a action="person">Search</s:a></td>
                </tr>
                <tr>
                	<td colspan="2">
                		<s:actionerror />
    					<s:actionmessage />
                	</td>
                </tr>
                <tr bgcolor="#d0dcff">
                    <td colspan="3">
                        <strong>Person</strong>
                    </td>
                </tr>
                <tr bgcolor="#ffffff">
                	<s:textfield name="firstName" label="First Name" size="30" labelSeparator="" />
                </tr>
                <tr bgcolor="#ffffff">
                    <s:textfield name="lastName" label="Last Name" size="30" labelSeparator="" />
                </tr>
                <tr bgcolor="#ffffff">
                    <td>Sex</td>
                    <td colspan="2">
                    	<label>
                    		<input type="radio" name="male" value="true" checked="checked"> Male
                    	</label>
                    	<label>
                    		<input type="radio" name="male" value="false"> Female
                    	</label>
                    </td>
                </tr>
                <tr bgcolor="#ffffff">
					<j:datepicker name="birthDate" displayFormat="dd-mm-yy" changeYear="true"
						readonly="true" required="true" yearRange="-70:+0" maxDate="+0"
						label="Birthdate" labelSeparator="" />

				</tr>
                <tr bgcolor="#ffffff">
                    <td>Status</td>
                    <td>
                    	<select id="status" name="rstatus" >
                    		<option value="0">Single</option>
                    		<option value="1">Married</option>
                    		<option value="2">In Relationship</option>
                    	</select>
                    </td>

                    <!-- td>
                        <input type="text" id="personRelation" value="" size="15" disabled="true" onfocus="this.blur()"/>
                        &nbsp;&nbsp;
                        <input type="hidden" name="relation.id" id="relation" value=""/>
                        <input type="button" value="View" onclick="javascript:window.open('listPerson/'+document.getElementById('gender').value,'cats','scrollbars=yes,status=no,width=300,height=300')"/>
                    </td -->
                </tr>

				<tr bgcolor="#ffffff">
                    <s:textfield name="address" label="Address" size="30" labelSeparator="" />
                </tr>
                <tr bgcolor="#ffffff">
                    <s:textfield name="city" label="City" size="30" labelSeparator="" />
                </tr>
                <tr bgcolor="#ffffff">
                    <s:textfield name="state" label="State" size="30" labelSeparator="" />
                </tr>
                <tr bgcolor="#ffffff">
                    <s:textfield name="country" label="Country" size="30" labelSeparator="" />
                </tr>
                <tr bgcolor="#ffffff">
                    <s:textfield name="email" label="Email" size="30" labelSeparator="" />
                </tr>
                <tr bgcolor="#ffffff">
                    <s:textfield name="mobile" label="Mobile Number" size="30" labelSeparator="" />
                </tr>
                <tr bgcolor="#ffffff">
                    <s:file name="userImage" label="Photo"/>
                </tr>
                <tr bgcolor="#ffffff">
                    <td colspan="2" align="right">
                        <input type="submit" value="Submit" width="70"/>
                        <input type="reset" value="reset" width="70"/>
                    </td>
                </tr>
            </table>
        </s:form>
	</body>
</html>